<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<title>查询商品入库</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<link href="css/style.css" rel="stylesheet" type="text/css">
<body>
	<table width="100%" border="1" cellspacing="0" cellpadding="0" style="font-size: 14px;">
		<c:choose>
			<c:when test="${not empty repositys }">
				<tr>
					<td><strong>合同名称</strong></td>
					<td><strong>商品名称</strong></td>
					<td><strong>商品单价</strong></td>
					<td><strong>商品数量</strong></td>
					<td><strong>物流单号</strong></td>
					<td><strong>入库时间</strong></td>
					<td><strong>入库仓库管理员</strong></td>
				</tr>
				<c:forEach var="reposity" items="${repositys }">
					<tr>
						<td><select>
								<c:forEach var="contract" items="${contracts }">
									<c:choose>
										<c:when test="${contract.id eq reposity.contractId }">
											<option value="${contract.id}" selected="selected">${contract.name }</option>
										</c:when>
										<c:otherwise>
											<option value="${contract.id}">${contract.name }</option>
										</c:otherwise>
									</c:choose>
								</c:forEach>
						</select></td>
						<td><select>
								<c:forEach var="good" items="${goods }">
									<c:choose>
										<c:when test="${good.goodsId eq reposity.goodsId }">
											<option value="${good.goodsId}" selected="selected">${good.goodsName }</option>
										</c:when>
										<c:otherwise>
											<option value="${good.goodsId}">${good.goodsName }</option>
										</c:otherwise>
									</c:choose>
								</c:forEach>
						</select></td>
						<td>${reposity.purchasePrice }</td>
						<td>${reposity.purchaseNumber }</td>
						<td>${reposity.logisticNumber }</td>
						<td>${reposity.storeTimeStr }</td>
						<td><select>
								<c:forEach var="user" items="${users }">
									<c:choose>
										<c:when test="${user.userID eq reposity.operatorId }">
											<option value="${user.userID}" selected="selected">${user.loginName }&nbsp;(${user.name })</option>
										</c:when>
										<c:otherwise>
											<option value="${user.userID}">${user.loginName }&nbsp;(${user.name })</option>
										</c:otherwise>
									</c:choose>
								</c:forEach>
						</select></td>
					</tr>
				</c:forEach>
			</c:when>
			<c:otherwise>
				<tr>
					<td colspan="2">暂无商品入库信息</td>
				</tr>
			</c:otherwise>
		</c:choose>
	</table>
</body>
</html>